#include("/common/layout/base_layout.html")
#@layout()
#define title()     
#jx_msg({key:"public.welcome,public.use"})#(systemName)
#end
#define head()
#jx_css({file:"bootstrap.min.css,font-awesome.min.css,animate.min.css,style.min.css"})
#jx_js({file:"sea.js,seajsconfig.js,vue/vue.js,vuemain.js"})
#jx_css({file:"iconfonts/iconfont.css"})
<script>
  var count = 0 ;
  
  seajs.use(['jq_ext','jx_msgbox','websocket','bootstrap','metisMenu','slimscroll','layer','main','contabs','pace'], function ($,msg,ws)
  {
      $(function()
      { 
        ws.init({url:"login",onmessage:function(evt,data)
          {
            $.log(data) ;
            if (data.type == "WS_LOGIN_MESSAGE")
            {
              count ++ ;
              vueMain.count = count ;
              vueMain.list.unshift(JSON.parse(data.data)) ;
            }
            if (ws.isLogout())
            {
              var content = "二次登录失败！请重新登录！" ;
              if (data.type == "WS_LOGOUT")
              {
                var lu = JSON.parse(data.data) ;
                content = "您已从 " + lu.loginIp + " 重新登录！" ;
              }
              msg.alert({content:content},function()
                {
                  window.top.location = "#(jxwebpath.item)login/logout" ;
                });
          }
          }});
      });
    });
</script>
#end
#define bodyExt()
class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden"
#end
#define content()
<div id="wrapper">
  #include("leftnav.html")
  #include("rightnav.html")
</div>
#end
<script>
  initVue();
 </script>